// 结构化-添加数据源
export const jghsjy = [
  {
    name: '数据源名称:',
    value: 'sjymc',
    tag: 'input',
    rules: {
      required: true,
      trigger: 'blur',
      message: '请输入数据源名称',
    },
    disabled: false,
    maxLength: '70',
    placeholder: '请输入',
  },
  {
    name: 'URL:',
    value: 'url',
    tag: 'input',
    rules: {
      required: true,
      trigger: 'blur',
      message: '请输入URL',
    },
    disabled: false,
    maxLength: '70',
    placeholder: '',
    id: '0',
  },
  {
    name: '用户名:',
    value: 'yhm',
    tag: 'input',
    rules: {
      required: true,
      trigger: 'blur',
      message: '请输入用户名',
    },
    disabled: false,
    maxLength: '70',
    placeholder: '请输入',
    isNumber: true,
  },
  {
    name: '密码:',
    value: 'mm',
    tag: 'input',
    rules: {
      required: true,
      trigger: 'blur',
      message: '请输入密码',
    },
    disabled: false,
    maxLength: '70',
    placeholder: '请输入',
    isPhone: true,
  },
  {
    name: '模式:',
    value: 'ms',
    tag: 'select',
    required: false,
    trigger: 'change',
    message: '请输入模式',
    disabled: false,
    suffixText: '加载',
    suffixType: 'button',
    // 对外抛出方法
    maxLength: '70',
    placeholder: '请输入',
    url: '/querySjymsm',
  },
  {
    name: '描述:',
    value: 'miaosu',
    tag: 'textarea',
    required: false,
    rows: 4,
    trigger: 'blur',
    message: '请输入描述',
    disabled: false,
    maxLength: '1000',
    placeholder: '请输入',
  },
]
// 非结构化-添加数据源
export const fjghsjy = [
  {
    name: '数据源名称：',
    value: 'sjybh',
    tag: 'select',
    rules: {
      required: true,
      trigger: 'change',
      message: '请选择采集数据源',
    },
    multiple: false,
    collapseTags: false,
    disabled: false,
    lbbm: '',
    placeholder: '请选择',
  },
  {
    name: '服务器地址：',
    value: 'bm',
    tag: 'select',
    rules: {
      required: true,
      trigger: 'change',
      message: '请选择服务器地址',
    },
    multiple: false,
    collapseTags: false,
    disabled: false,
    lbbm: '',
    placeholder: '请选择',
  },
  {
    name: '端口：',
    value: 'dk',
    tag: 'input',
    rules: {
      required: true,
      trigger: 'blur',
      message: '请输入端口',
    },
    placeholder: '请输入',
  },
  {
    name: '用户名：',
    value: 'dk',
    tag: 'input',
    rules: {
      required: true,
      trigger: 'blur',
      message: '请输入用户名',
    },
    placeholder: '请输入',
  },
  {
    name: '密码：',
    value: 'mm',
    tag: 'inputPassword',
    rules: {
      required: true,
      trigger: 'blur',
      message: '请输入密码',
    },
    placeholder: '请输入密码',
  },
  {
    name: '描述:',
    value: 'miaosu',
    tag: 'textarea',
    required: false,
    rows: 4,
    trigger: 'blur',
    message: '请输入描述',
    disabled: false,
    maxLength: '1000',
    placeholder: '请输入',
  },
]
// 消息中间件-添加数据源
export const xxzjjsjy = [
  {
    name: '数据源名称：',
    value: 'sjybh',
    tag: 'select',
    rules: {
      required: true,
      trigger: 'change',
      message: '请选择采集数据源',
    },
    multiple: false,
    collapseTags: false,
    disabled: false,
    lbbm: '',
    placeholder: '请选择',
  },
  {
    name: 'mq地址：',
    value: 'mqdz',
    tag: 'input',
    rules: {
      required: true,
      trigger: 'blur',
      message: '请输入mq地址',
    },
    disabled: false,
    placeholder: '请输入',
  },
  {
    name: 'GroupID：',
    value: 'groupid',
    tag: 'input',
    rules: {
      required: true,
      trigger: 'blur',
      message: '请输入GroupID',
    },
    disabled: false,
    placeholder: '请输入',
  },
  {
    name: '主题：',
    value: 'zt',
    tag: 'select',
    multiple: false,
    collapseTags: false,
    disabled: false,
    lbbm: '',
    placeholder: '请选择',
    suffixText: '加载',
    suffixType: 'button',
  },
  {
    name: '描述:',
    value: 'miaosu',
    tag: 'textarea',
    required: false,
    rows: 4,
    trigger: 'blur',
    message: '请输入描述',
    disabled: false,
    maxLength: '1000',
    placeholder: '请输入',
  },
]
// 归档日志-添加数据源
export const gdrzsjy = [
  {
    name: '数据源名称：',
    value: 'sjybh',
    tag: 'select',
    rules: {
      required: true,
      trigger: 'change',
      message: '请选择采集数据源',
    },
    multiple: false,
    collapseTags: false,
    disabled: false,
    lbbm: '',
    placeholder: '请选择',
  },
  {
    name: 'URL：',
    value: 'url',
    tag: 'input',
    rules: {
      required: true,
      trigger: 'blur',
      message: '请输入URL',
    },
    multiple: false,
    collapseTags: false,
    disabled: false,
    lbbm: '',
    placeholder: '请选择',
  },
  {
    name: '用户名：',
    value: 'dk',
    tag: 'input',
    rules: {
      required: true,
      trigger: 'blur',
      message: '请输入用户名',
    },
    placeholder: '请输入',
  },
  {
    name: '密码：',
    value: 'mm',
    tag: 'inputPassword',
    rules: {
      required: true,
      trigger: 'blur',
      message: '请输入密码',
    },
    placeholder: '请输入密码',
  },
  {
    name: '描述:',
    value: 'miaosu',
    tag: 'textarea',
    required: false,
    rows: 4,
    trigger: 'blur',
    message: '请输入描述',
    disabled: false,
    maxLength: '1000',
    placeholder: '请输入',
  },
]
// 添加采集过程
export const tjcjgc = [
  {
    name: '分类名称：',
    value: 'fldm',
    tag: 'select',
    multiple: false,
    collapseTags: false,
    disabled: false,
    placeholder: '请选择',
  },
  {
    name: '采集名称：',
    value: 'cjmc',
    tag: 'input',
    disabled: false,
    placeholder: '请输入',
  },
  {
    name: '采集类型：',
    value: 'cjlx',
    tag: 'select',
    multiple: false,
    collapseTags: false,
    disabled: false,
    placeholder: '请选择',
  },
  {
    name: '序号：',
    value: 'xh',
    tagParams: {
      stepStrictly: true,
      precision: 0,
      controls: false,
      step: 1,
      min: 1,
      max: 99,
    },
    tag: 'inputnumber',
    multiple: false,
    collapseTags: false,
    disabled: false,
    placeholder: '请输入',
  },
]
// 添加采集过程-结构化采集
export const tjcjgcjghcj = [
  {
    name: '采集数据源：',
    value: 'sjybh',
    tag: 'select',
    multiple: false,
    collapseTags: false,
    disabled: false,
    lbbm: '',
    placeholder: '请输入',
  },
  {
    name: '源表名：',
    value: 'bm',
    tag: 'select',
    multiple: false,
    collapseTags: false,
    disabled: false,
    lbbm: '',
    placeholder: '请输入',
  },
  {
    name: '抽取列：',
    value: 'cql',
    tag: 'transfer',
    multiple: true,
    width: '500px',
    height: '300px',
    disabled: false,
    placeholder: '请输入',
  },
  {
    name: 'WHERE条件：',
    value: 'whereTj',
    tag: 'textarea',
    required: false,
    message: '请输入WHERE条件',
    disabled: false,
    placeholder: '请输入',
  },
  {
    name: '输入写入方式：',
    value: 'zdlb',
    tag: 'select',
    multiple: false,
    collapseTags: false,
    disabled: false,
    allowableValues: '全量(ql)/增量(zl)',
    placeholder: '请选择',
    width: '50%',
  },
  {
    name: '增量字段：',
    value: 'zlzd',
    tag: 'select',
    multiple: false,
    collapseTags: false,
    disabled: false,
    width: '50%',
    placeholder: '请选择',
  },
]
// 添加采集过程-非结构化采集-基于存储
export const fjghcjjycc = [
  {
    name: '采集类型：',
    value: 'cjlx',
    tag: 'radio',
    disabled: false,
  },
  {
    name: '采集数据源：',
    value: 'cjsjy',
    tag: 'select',
    multiple: false,
    collapseTags: false,
    disabled: false,
    placeholder: '请选择',
  },
  {
    name: '源文件存放路径：',
    value: 'cflj',
    tag: 'input',
    disabled: false,
    placeholder: '请输入',
  },
  {
    name: '文件后缀：',
    value: 'wjhz',
    tag: 'select',
    multiple: false,
    collapseTags: false,
    disabled: false,
    placeholder: '请选择',
  },
  {
    name: '是否遍历子集目录：',
    value: 'sfblzj',
    tag: 'switch',
    disabled: false,
  },
  {
    name: '输入写入方式：',
    value: 'srxrfs',
    tag: 'select',
    multiple: false,
    collapseTags: false,
    disabled: false,
    placeholder: '请选择',
  },
  {
    name: '增量字段：',
    value: 'zlzd',
    tag: 'select',
    multiple: false,
    collapseTags: false,
    disabled: false,
    placeholder: '请选择',
  },
  {
    name: '忽略大文件：',
    value: 'sfblzj',
    tagParams: {
      activeValue: true,
      inactiveValue: false,
    },
    width: '20%',
    tag: 'switch',
    disabled: false,
  },
  {
    name: '',
    value: 'xh',
    tagParams: {
      stepStrictly: true,
      precision: 0,
      controls: false,
      step: 1,
      min: 1,
    },
    width: '50%',
    suffixText: 'M 将被忽略',
    prevText: '超过',
    prevType: 'text',
    suffixType: 'text',
    tag: 'inputnumber',
    multiple: false,
    collapseTags: false,
    disabled: false,
    placeholder: '请输入',
  },
]
